﻿// See https://aka.ms/new-console-template for more information

using OvenTest;
using System.Collections;
using System.Reflection;


BitArray bitArray = new BitArray(new bool[] { true, false,false,false });
byte[] b1 = new byte[4];
bitArray.CopyTo(b1, 0);

Console.WriteLine("Hello, World!");
DateTime dt0= DateTime.Now; 
Thread.Sleep(1000); 
TimeSpan ts = DateTime.Now.Subtract(dt0);
string str0=(new DateTime(ts.Ticks)).ToString("HH:mm:ss");
DateTime dt= DateTime.Parse(ts.Hours + ":" + ts.Minutes + ":" + ts.Seconds);
string str=dt.ToString("HH:mm:ss");
var v1=Assembly.GetExecutingAssembly().CreateInstance("OvenTest.RegValidator");
object[] objArray = new object[1];
objArray[0] = dt0.ToString();
var v2=Assembly.GetExecutingAssembly().CreateInstance("OvenTest.RegValidator",true,BindingFlags.Default,null,objArray,null,null);
var v3 = Assembly.GetExecutingAssembly().CreateInstance("OvenTest.RegValidator", true, BindingFlags.Default, null, new object[] { new string[] { "山西","太原","万柏林"} }, null, null);
Console.ReadLine();